package com.xuecheng.content.model.dto;

import com.xuecheng.base.exception.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "AddCourseTeacherDto", description = "新增课程师资信息")
public class AddCourseTeacherDto {

    @ApiModelProperty(value = "课程id", required = true)
    private Long courseId;

    @NotEmpty(message = "教师名称不能为空", groups = {ValidationGroups.Insert.class})
    @ApiModelProperty(value = "教师名称", required = true)
    private String teacherName;

    @NotEmpty(message = "教师职位不能为空", groups = {ValidationGroups.Insert.class})
    @ApiModelProperty(value = "教师职位", required = true)
    private String position;

    @NotEmpty(message = "教师简介不能为空", groups = {ValidationGroups.Insert.class})
    @ApiModelProperty(value = "教师简介", required = true)
    private String introduction;

    @ApiModelProperty(value = "教师照片", required = false)
    private String photograph;

    @ApiModelProperty(value = "创建时间", required = false)
    private LocalDateTime createTime;
}
